﻿USE [ShopDB]
GO

/****** Object:  StoredProcedure [dbo].[ProductLoadById]    Script Date: 04/07/2011 19:02:00 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[ProductLoadById]') AND type in (N'P', N'PC'))
DROP PROCEDURE [dbo].[ProductLoadById]
GO

USE [ShopDB]
GO

/****** Object:  StoredProcedure [dbo].[ProductLoadById]    Script Date: 04/07/2011 19:02:00 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO


-- =============================================
-- Author:		Alexander litvinneko
-- Create date: 2011
-- Description:	Select Product by ID
-- =============================================
CREATE PROCEDURE [dbo].[ProductLoadById] 
	@ProdId bigint	
AS
BEGIN
	SELECT * FROM Goods WHERE ID = @ProdId
END


GO


